﻿/*
 * @Author: your name
 * @Date: 2021-04-27 10:12:48
 * @LastEditTime: 2021-06-01 15:23:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \umi\config\routes.ts
 */
export default [
  {
    path: '/',
    component: '../layouts/BasicLayout',
    routes: [
      { path: '/', redirect: '/product-management/renewal-list' },

      {
        path: '/product-management',
        name: 'product-management',
        icon: 'crown',
        // component: './RenewalPanel',
        routes: [
          {
            path: '/',
            redirect: '/product-management/renewal-list',
          },
          {
            path: '/product-management/renewal-list',
            name: 'renewalList',
            icon: 'crown',
            component: './renewalPanel',
            // hideInMenu:true,
          },
          {
            path: '/product-management/renewal-detail/:id',
            name: 'renewalDetail',
            icon: 'crown',
            component: './renewalDetail',
            hideInMenu: true,
          },
          {
            path: '/product-management/renewal-edite/:id',
            name: 'renewalEdite',
            icon: 'crown',
            component: './renewalEdite',
            hideInMenu: true,
          },
        ],
      },
      {},

      // {
      //   path: '/user',
      //   component: '../layouts/UserLayout',
      //   routes: [
      //     {
      //       name: 'login',
      //       path: '/user/login',
      //       component: './User/login',
      //     },
      //   ],
      // },
      // {
      //   path: '/',
      //   component: '../layouts/SecurityLayout',
      //   routes: [
      //     {
      //       path: '/',
      //       component: '../layouts/BasicLayout',
      //       // authority: ['admin', 'user'],
      //       routes: [
      //         {
      //           path: '/',
      //           redirect: '/welcome',
      //         },
      //         {
      //           path: '/welcome',
      //           name: 'welcome',
      //           icon: 'smile',
      //           component: './Welcome',
      //         },
      //         {
      //           path: '/admin',
      //           name: 'admin',
      //           icon: 'crown',
      //           component: './Admin',
      //           authority: ['admin'],
      //           routes: [
      //             {
      //               path: '/admin/sub-page',
      //               name: 'sub-page',
      //               icon: 'smile',
      //               component: './Welcome',
      //               authority: ['admin'],
      //             },
      //           ],
      //         },
      //         {
      //           name: 'list.table-list',
      //           icon: 'table',
      //           path: '/list',
      //           component: './TableList',
      //         },
      //         {
      //           component: './404',
      //         },
      //       ],
      //     },
      //     {
      //       component: './404',
      //     },
      //   ],
      // },
    ],
  },
  {
    component: './404',
  },
];
